package com.yehuo.app.controller;


import com.yehuo.app.dto.APPOrderDto;
import com.yehuo.app.dto.CreateOrderDTO;
import com.yehuo.app.dto.OrderDTO;
import com.yehuo.app.entity.UserPassword;
import com.yehuo.app.model.APP;
import com.yehuo.app.service.AppOrderService;
import com.yehuo.app.service.UserPasswordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/appUserPassword"})
public class AppPasswordController {
    @Autowired
    private UserPasswordService userPasswordService;

    @RequestMapping({"/updatePassword"})
    public APP updatePassword(UserPassword userPassword) {
        return this.userPasswordService.updatePassword(userPassword);
    }
    @RequestMapping({"/getUserPassword"})
    public APP getUserPassword(String userId) {
        return this.userPasswordService.getUserPassword(userId);
    }

    @RequestMapping({"/checkPassword"})
    public APP checkPassword(UserPassword userPassword) {
        return this.userPasswordService.checkPassword(userPassword);
    }
}
